/**
 * 
 */
package com.xb.demo8.abstract1.factory;

/**
 * @author kexue
 *
 */
public class SimpleTagFactory implements TagFactory {

	public Tag createTag(String type, String caption) {
		 if("a".equals(type)){ 
			 return new ALink(caption);
		 }else{
			 return new PTag(caption);
		 }
	}

}
